#include <iostream>
#include <vector>
//#include <GLES3/gl3.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
using namespace std;

int main()
{
    /* Initialize the library */
    if (!glfwInit())
        return -1;

    //glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // We don't want the old OpenGL
    /* Create a windowed mode window and its OpenGL context */
    int canvasWidth = 800;
    int canvasHeight = 600;
    GLFWwindow* window = glfwCreateWindow(canvasWidth, canvasHeight, "Spike profiler", NULL, NULL);
    if (window == NULL)
    {
        fprintf(stderr, "Failed to open GLFW window.\n");
        glfwTerminate();
        return -1;
    }

    /* Make the window's context current */
    glfwMakeContextCurrent(window);
    glewInit();

    auto g_ShaderHandle = glCreateProgram();

    /* Loop until the user closes the window */
    while (!glfwWindowShouldClose(window))
    {
        //auto g_ShaderHandle = glCreateProgram();

        /* Render here */
        glClear(GL_COLOR_BUFFER_BIT);

        /* Swap front and back buffers */
        glfwSwapBuffers(window);

        /* Poll for and process events */
        glfwPollEvents();
    }

    glfwTerminate();
}